package com.csust.automaticteach.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 消息表
 * @TableName t_amessage
 */
@TableName(value ="t_amessage")
@Data
public class Amessage implements Serializable {
    /**
     * 消息id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 消息类型
     */
    @TableField(value = "type")
    private String type;

    /**
     * 消息描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 消息可看角色
     */
    @TableField(value = "allowRole")
    private String allowRole;

    /**
     * 发布人id
     */
    @TableField(value = "userId")
    private Long userId;
    /**
     * 更新时间
     */
    @TableField(value = "updateTime")
    private Date updateTime;

    /**
     * 操作时间
     */
    @TableField(value = "createTime")
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}